<template>
  <div class="bind">
    <basic-container>
      <avue-tabs :option="option" @change="handleChange"></avue-tabs>
      <subjectlist v-if="type.prop === 'subject'"></subjectlist>
      <scaleList v-else-if="type.prop === 'scale'"></scaleList>
    </basic-container>
  </div>
</template>

<script>
import scaleList from "./customInfo/scaleList.vue";
import subjectlist from "./customInfo/subjectlist.vue";

export default {
  name: "CUSTOM",
  components: { subjectlist, scaleList },
  data() {
    return {
      type: {},
      option: {
        column: [
          {
            label: "自定义题目",
            prop: "subject"
          },
          {
            label: "自定义量表",
            prop: "scale"
          }
        ]
      }
    };
  },
  created() {
    this.type = this.option.column[0];
  },
  methods: {
    handleChange(column) {
      this.type = column;
    }
  }
};
</script>

<style lang="scss" scoped>
.bind {
}
</style>
